package message;

public class Fmessage {
	head head;
	public head getHead() {
		return head;
	}

	public void setHead(head head) {
		this.head = head;
	}

	public messageBody getMessageBody() {
		return messageBody;
	}

	public void setMessageBody(messageBody messageBody) {
		this.messageBody = messageBody;
	}

	public messageBody getMessageeXtension() {
		return messageeXtension;
	}

	public void setMessageeXtension(messageBody messageeXtension) {
		this.messageeXtension = messageeXtension;
	}

	public tail getTail() {
		return tail;
	}

	public void setTail(tail tail) {
		this.tail = tail;
	}

	messageBody messageBody;
	messageBody messageeXtension;
	tail tail;
	
	public Fmessage(head h,messageBody mb,messageBody mbe,tail t) {
		setHead(h);
		setMessageBody(mb);
		setMessageeXtension(mbe);
		setTail(t);
	}
	@Override
	public String toString() {
		return ""+head+messageBody+messageeXtension+tail;
	}
}
